{{template "g_header.tpl" .}}
{{if .list}}
<div class="row">

    <div class="col-xs-12">
        <a class="btn btn-block" href="/Station/Edit?id=0">新增</a>
        <table class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                <th>Id</th>
                <th>站名</th>
                <th>编号</th>
                <th>所在城市</th>
                <th>纬度</th>
                <th>经度</th>
                <th>地址</th>
                <th>操作</th>
            </tr>
            </thead>
            {{range .list}}
            <tbody>
            <tr>
                <td>{{.StationId}}</td>
                <td>{{.Name}}</td>
                <td>{{.Code}}</td>
                <td>{{.CityName}}</td>
                <td>{{.Lat}}</td>
                <td>{{.Long}}</td>
                <td>{{.Address}}</td>
                <td><a href="/Station/Edit?id={{.StationId}}">修改</a> | <a href="/Station/Delete?id={{.StationId}}">删除</a></td>
            </tr>
            </tbody>
            {{end}}
        </table>
    </div>
</div>
{{end}}
{{template "g_footer.tpl" .}}